<template>
	<view class="content">
		<u-navbar :title="title" placeholder :autoBack="true"></u-navbar>
		<view class="wz">
			<u-parse :content="wz"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '',
				key: '',
				wz: ''
			}
		},
		onLoad(option) {
			let key = option.key
			this.key = key
			if(key=='yhxy'){//用户协议
				this.title = '用户协议'
			}else if(key=='yszc'){//隐私政策
				this.title = '隐私政策'
			}else if(key=='sfbz'){//收费标准
				this.title = '收费标准'
			}else if(key=='fltkbz'){//辉鲨司机法律条款标准
				this.title = '法律条款标准'
			}else if(key=='about'){//关于辉鲨货滴
				this.title = '关于辉鲨货滴'
			}
			//获取设置
			this.getSet()
		},
		methods: {
			//获取设置
			async getSet(){
				let data = await this.$request({
						url: '/d/set/index',
          isAuth:false,
						data: {
							key: this.key
						}
				});
        console.log(data)
				this.wz = data.data
			},
		}
	}
</script>

<style lang="scss" scoped>
	.content{
		.wz{
			padding: 20rpx;
			color: #000;
		}
	}
</style>
